package dao;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

import model.Accident;

@Repository
public interface AccidentDao {
	public void save(Accident accident);

	public void update(Accident accident);

	/* 管理员类 */
	public List<HashMap<String, Object>> queryAllPage(PageBounds pageBounds,
			HashMap<String, Object> map);

	/* 全市 */
	public List<HashMap<String, Object>> queryPage(PageBounds pageBounds,
			HashMap<String, Object> map);

	/* 全区 */
	public List<HashMap<String, Object>> queryDistrictPage(
			PageBounds pageBounds, HashMap<String, Object> map);

	/* 个人 */
	public List<HashMap<String, Object>> queryUserPage(PageBounds pageBounds,
			HashMap<String, Object> map);

	public List<HashMap<String, Object>> getById(Integer id);

	public void delete(Integer id);

	public void submit(HashMap<String, Object> map);

	public Integer countMy(HashMap<String, Object> map);
}
